home *** CD-ROM | disk | FTP | other *** search
- global tickrate, oldticks, rollvolume, jurorspeaking, globalidvolume
-
- on exitFrame
- t = the ticks
- tickrate = min(40, max(2, (((t - oldticks) * 3) + tickrate) / 2))
- oldticks = t
- if the shiftDown then
- set the volume of sound 2 to rollvolume
- else
- set the volume of sound 2 to min(50, rollvolume)
- end if
- rollvolume = 0
- if soundBusy(4) then
- v4 = the volume of sound 4
- if v4 <> globalidvolume then
- set the volume of sound 4 to globalidvolume
- end if
- else
- jurorspeaking = 0
- end if
- if soundBusy(1) then
- v1 = the volume of sound 1
- v4 = the volume of sound 4
- if soundBusy(4) then
- if v1 <> (globalidvolume * 0.29999999999999999) then
- set the volume of sound 1 to globalidvolume * 0.29999999999999999
- end if
- else
- if v1 <> globalidvolume then
- set the volume of sound 1 to globalidvolume
- end if
- end if
- end if
- go(the frame)
- end
-